'use strict';
exports.main = async (event, context) => {
	//event为客户端上传的参数
	console.log('event : ', event)
	const db=uniCloud.database();
	return new Promise((resolve,reject)=>{
		db.collection("FriendInfo").doc(event._id).remove().then(res=>{
			resolve(res)
		}).catch(err=>{
			resolve(err)
		})
		})
		
		
	//返回数据给客户端
	return event
};